import request from '@/utils/request'

// 查询返佣金额列表
export function listCommission(query) {
  return request({
    url: '/commission/list',
    method: 'get',
    params: query
  })
}



export function getCommissionInfo(id) {
  return request({
    url: '/commission/info?id='+id,
    method: 'get'
  })
}
// 新增返佣金额
export function addCommission(data) {
  return request({
    url: '/commission/add',
    method: 'post',
    data: data
  })
}

export function updateCommission(data) {
  return request({
    url: '/commission/updateCommission',
    method: 'post',
    data: data
  })
}

export function listLog(query) {
  return request({
    url: '/commission/getUserList',
    method: 'get',
    params: query
  })
}

export function listLog2(query) {
  return request({
    url: '/commission/missionPersonList',
    method: 'get',
    params: query
  })
}


export function updateStatus(data) {
  return request({
    url: '/commission/update',
    method: 'post',
    data: data
  })
}

export function cancelMission(query) {
  return request({
    url: '/commission/cancelMission',
    method: 'get',
    params: query
  })
}

// 删除返佣金额
export function delCommission(query) {
  return request({
    url: '/commission/update',
    method: 'post',
    data: query
  })
}

